import request from '../utils/request';


export const addCar = (params) => request.post('/api/car',params)

//获取购物车列表
export const getCarList = () => request.get('/api/car')

//修改数量的接口  put

export const changeNum = (id,num) =>request.put(`/api/car/${id}`,{num})